<div class="container">
	<div class="ui basic icon buttons">
		<div class="ui button" onclick="javascript: window.location.href='<@full_path path='v/write.jhtml' />'">
			<i class="plus icon"></i>
		</div>
		<div class="ui button">
			<i class="trash icon"></i>
		</div>
	</div>
	<table class="ui celled table">
		<thead>
			<tr>
				<th class="one wide">
					<div class="ui master checkbox">
						<input type="checkbox">
						<label></label>
					</div>
				</th>
				<th class="three wide">标题</th>
				<th class="three wide">发布时间</th>
				<th class="one wide">阅读</th>
				<th class="one wide">评论</th>
				<th class="one wide">点赞</th>
				<th class="three wide">操作</th>
			</tr>
		</thead>
		<tbody>
		<#if pageInfo?? && pageInfo.list?? && pageInfo.list?size gt 0>
			<#list pageInfo.list as item>
			<tr>
				<td>
					<div class="ui checkbox">
						<input type="checkbox">
						<label></label>
					</div>
				</td>
				<td>${item.title!}</td>
				<td>${item.createTime?string('yyyy-MM-dd HH:mm:ss')}</td>
				<td>0</td>
				<td>0</td>
				<td>0</td>
				<td>
					<div class="ui horizontal list">
						<a class="item" href="<@full_path path='v/edit/${item.id!}.jhtml' />">编辑</a>
						<a class="item" href="#">删除</a>
						<#if item.isPublic?? && item.isPublic == '1'>
						<a class="item" href="#">设为私密</a>
						<#elseif item.isPublic?? && item.isPublic == '0'>
						<a class="item" href="#">设为公开</a>
						</#if>
					</div>
				</td>
			</tr>
			</#list>
		<#else>
			<tr><td colspan="7" style="text-align: center;">当前没有任何文章</td></tr>
		</#if>
		</tbody>
		<tfoot>
			<tr>
				<th colspan="7">
					<div class="ui right floated pagination menu">
						<div class="icon item"> <i class="angle double left icon"></i></div>
						<#if pageInfo?? && pageInfo.navigatepageNums?? && pageInfo.navigatepageNums?size gt 0>
						<#list pageInfo.navigatepageNums as item>
						<div class="item">${item!}</div>
						</#list>
						</#if>
						<div class="icon item"><i class="angle double right icon"></i></div>
					</div>
				</th>
			</tr>
		</tfoot>
	</table>
</div>

<script type="text/javascript" src="<@full_path path='js/article/manage.js' />"></script>
<script type="text/javascript" src="<@full_path path='js/util/checkbox.js' />"></script>
